// 3D打印时，因材料的流动，孔径会缩小，需要提前测试，根据测试结果修改claw.scad中的参数
// 用于补偿3D打印时孔径缩小的问题,5/4.5mm 型孔
//hole_comp_5d = 0.1; 
// 用于补偿3D打印时孔径缩小的问题，8mm圆形孔
//hole_comp_8 = 0.1;  

$fa=6;
$fs=0.5;
module d_cylinder(d=5, cut=4.5)
{
    difference(){
    cylinder(h=40, d=d, center=true);
    translate([0, -5-(cut-d/2), 0])
        cube([10,10,41], center=true);
}

}
difference(){
    cube([20, 90, 4], center=true);
    hole_offset = 8.5;
    translate([0, 0, 0])
        cylinder(h=40, d=8.05, center=true);
    translate([0, -12, 0])
        cylinder(h=40, d=8.1, center=true);
    translate([0, -12*2, 0])
        cylinder(h=40, d=8.15, center=true);
    translate([0, -12*3, 0])
        cylinder(h=40, d=8.2, center=true);
    translate([0, 12, 0])
        d_cylinder(5+0.05, 4.5+0.05);
    translate([0, 12*2, 0])
        d_cylinder(5+0.1, 4.5+0.1);
    translate([0, 12*3, 0])
        d_cylinder(5+0.15, 4.5+0.15);
}

